Skip to content

Instantly share code, notes, and snippets.

@mndrix
mndrix / base32-padding.go
Created November 2, 2015 21:54
Add padding characters to base32 encoded data
package main
import (
"encoding/base32"
"fmt"
"strings"
)
func main() {
data := "2246b2egzcc3ktvvoklo5cvzh4"
@donmccurdy
donmccurdy / delete_tweets.js
Last active September 18, 2026 10:12
Delete Tweets
// To delete tweets, navigate to your Twitter/X profile, open your browser's JavaScript console, and paste the script below.
async function sleep(ms) {
return new Promise((resolve) => setTimeout(resolve, ms))
}
async function deleteTweets() {
const tweetsRemaining = document.querySelectorAll('[role="heading"]+div')[1].textContent;
console.log('Remaining: ', tweetsRemaining);
window.scrollBy(0, 10000);
// THIS SCRIPT ALLOW YOU TO ACCEPT ALL THE CONNECTION REQUESTION IN ONE GO. ON LINKEIND
// USE IT AT YOUR OWN RISK. THIS MAY CAUSE ACCOUNT BAN :)
// BY RUNNING THIS SCRIPT YOU AGREED TO - FUCK AROUND AND FIND OUT.
// TERMS AND CONDITION APPLIED
(async () => {
const sleep = ms => new Promise(r => setTimeout(r, ms));
const norm = el => (el.textContent || "").replace(/\s+/g, " ").trim();
const clickAccept = () => {
const buttons = [...document.querySelectorAll("button")]
@arianvp
arianvp / SSH_MACOS_SECURE_ENCLAVES.md
Last active September 18, 2026 10:08
Native Secure Enclaved backed ssh keys on MacOS

Native Secure Enclave backed ssh keys on MacOS

It turns out that MacOS Tahoe can generate and use secure-enclave backed SSH keys! This replaces projects like https://github.com/maxgoedjen/secretive

There is a shared library /usr/lib/ssh-keychain.dylib that traditionally has been used to add smartcard support to ssh by implementing PKCS11Provider interface. However since recently it also implements SecurityKeyProivder which supports loading keys directly from the secure enclave! SecurityKeyProvider is what is normally used to talk to FIDO2 devices (e.g. libfido2 can be used to talk to your Yubikey). However you can now use it to talk to your Secure Enclave instead!

#EXTM3U
#EXTINF:0,Radio France - FIP (AAC+Metadata)
http://radio-metadata.fr:8000/fip.m3u
#EXTINF:0,Radio France - FIP Reggae (AAC+Metadata)
http://radio-metadata.fr:8000/fipreggae.m3u
#EXTINF:0,Radio France - FIP Cultes (AAC+Metadata)
http://radio-metadata.fr:8000/fipcultes.m3u
#EXTINF:0,Radio France - FIP World (AAC+Metadata)
http://radio-metadata.fr:8000/fipmonde.m3u
#EXTINF:0,Radio France - FIP Nouveautés (AAC+Metadata)

LLM Wiki

A pattern for building personal knowledge bases using LLMs.

This is an idea file, it is designed to be copy pasted to your own LLM Agent (e.g. OpenAI Codex, Claude Code, OpenCode / Pi, or etc.). Its goal is to communicate the high level idea, but your agent will build out the specifics in collaboration with you.

The core idea

Most people's experience with LLMs and documents looks like RAG: you upload a collection of files, the LLM retrieves relevant chunks at query time, and generates an answer. This works, but the LLM is rediscovering knowledge from scratch on every question. There's no accumulation. Ask a subtle question that requires synthesizing five documents, and the LLM has to find and piece together the relevant fragments every time. Nothing is built up. NotebookLM, ChatGPT file uploads, and most RAG systems work this way.

@ezl
ezl / Thirty Percent Feedback.md
Last active September 18, 2026 09:47
Thirty Percent Feedback by Jason Freedman (42 Floors)

Thirty Percent Feedback

By Jason Freedman in Startups and Uncategorized on February, 26, 2014 Source: https://42floors.com/blog/startups/thirty-percent-feedback (Copied in case this resource disappears)


I remember showing school essays to my dad growing up. He’s a really good writer and so getting his feedback before I turned a paper in usually helped me make some improvements. But whenever I’d watch him reading over the pages, I would secretly be hoping he’d read it and say that everything is perfect. I obviously thought it was already perfect, otherwise I wouldn’t have shown it to him.

@cyran-kyle
cyran-kyle / Broadcast.js
Last active September 18, 2026 09:46 — forked from nabeelxdd/Broadcast.js
Levanter-MD Broadcast Plugin by Nabeel-XD. ‎ ‎ ‎ ‎ ‎ ‎ ‎‎ ‎ ‎ ‎ ‎ ‎ ‎ Thanks: @lyfe00011 for Help to Create Plugin‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎Commands: newbocst, editbocst, dtbocst, allbocst, sndbocst
const fs = require('fs')
const path = require('path')
const { bot, parsedJid, sleep, forwardOrBroadCast } = require('../lib/')
const BROADCAST_FOLDER = path.join(__dirname, 'NabeelXD-Broadcast')
if (!fs.existsSync(BROADCAST_FOLDER)) {
fs.mkdirSync(BROADCAST_FOLDER)
}
@CMCDragonkai
CMCDragonkai / makeWrapper_and_wrapProgram.md
Created August 24, 2018 07:50
makeWrapper and wrapProgram #nix

makeWrapper and wrapProgram

Nix generally assumes run-time dependencies is a subset of the build-time dependencies.

This means many Nix builder functions try to automatically scan the output for runtime dependencies and "rewrite" them for runtime usage.

However shell scripts which are often exported by packages do not get this automatic scanning treatment.

This means you have to use the makeWrapper package and use either the makeWrapper or wrapProgram utility functions.